package model

import (
	"gorm.io/gorm"
	"time"
)

type CrmBanner struct {
	ID        int            `json:"id"`
	Title     string         `json:"title"`
	ImageUrl  string         `json:"imageUrl"`
	LinkUrl   string         `json:"linkUrl"`
	Sort      int            `json:"sort"`
	CreatedAt time.Time      `json:"created_at"`
	UpdatedAt time.Time      `json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at"`
}

func (CrmBanner) TableName() string {
	return "crm_banner"
}
